import random

from creational.abstract_factory.CatFactory import CatFactory
from creational.abstract_factory.DogFactory import DogFactory
from creational.abstract_factory.PetShop import PetShop


def get_factory():
    return random.choice([DogFactory, CatFactory])()


if __name__ == '__main__':
    shop = PetShop()
    for i in range(3):
        shop.pet_factory = get_factory()
        shop.show_pet()
        print("=" * 20)
